//
//  CopyTextView.swift
//  AutoCoder
//
//  Created by lelouch on 2025/1/19.
//

import Cocoa

class CopyTextView: NSTextView {

    override func mouseDown(with event: NSEvent) {
        super.mouseDown(with: event)
        let paste = NSPasteboard.general
        paste.clearContents()
        paste.writeObjects([self.string as NSString])
    }
    
}
